//
//  Course.m
//  NavigationEx
//
//  Created by Win Kyi Tin on 28/3/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Course.h"


@implementation Course
@synthesize courseId, courseDesc, lecturer;

+ (NSMutableArray *)  getExistingCourses {
   	NSMutableArray *courses = [[NSMutableArray alloc] init];
	[courses addObject:[[[Course alloc] initWithId: @"S-OOAD"] autorelease]];
	[courses addObject:[[[Course alloc] initWithId: @"S-PMIS"] autorelease]];
	[courses addObject:[[[Course alloc] initWithId: @"S-JAVA EE"] autorelease]];
 	[courses addObject:[[[Course alloc] initWithId: @"S-CSCRUM"] autorelease]];
	[courses autorelease];
	return courses ;
}

- (id) initWithId:(NSString *) myId {
	self = [super init];
	if(self) {
		self.courseId = myId;
		return self;
	}
	return self;
}

- (void)dealloc {
	[courseId release]; 
	[courseDesc release];
	[lecturer release];
	[super dealloc];
}

@end
